//
//  JSMLeavingHotDetailsCollectionReusableView.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/3.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHotDetailsCollectionReusableView.h"

@implementation JSMLeavingHotDetailsCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.headerBackView = [[BaseView alloc] init];
    [self addSubview:self.headerBackView];
    
    self.titleLabel = [[BaseLabel alloc] init];
    [self addSubview:self.titleLabel];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.headerBackView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.titleLabel.frame = CGRectMake(15, 0, self.frame.size.width - 30, self.frame.size.height);

}
@end
